﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace NewsPortal.DataAccess.Abstraction
{
    public interface IUnitOfWork<T> where T: class, IEntity
    {
        IRepository<T> Repository { get; }
        IRepository<TEntity> GetTypeRepository<TEntity>() where TEntity : class, IEntity;
        int SaveChanges();
        Task<int> SaveChangesAsync();
    }
}
